﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using eProject_SEM3_SecurityServices.ObjectClass;
using eProject_SEM3_SecurityServices.DataAccess;

namespace eProject_SEM3_SecurityServices.Bussiness
{
    public class BEmployee
    {
        DEmployee DEmployee = null;

        public BEmployee()
        {
            DEmployee = new DEmployee();
        }
        public List<OEmployee> GetEmployeeList()
        {
            return DEmployee.GetEmployeeList(); 
        }

        //@empID int
        public OEmployee GetEmployeeDetails(int empID)
        {
            return DEmployee.GetEmployeeDetails(empID);
        }

       /* @EmployeeFullName nvarchar(500),
	@UserName nvarchar(500),
	@Password nvarchar(500),
	@EmployeeAddress nvarchar(500),
	@EmployeeBirthday nvarchar(500),
	@EmployeeGender nvarchar(500),
	@EmployeeSalary nvarchar(500),
	@EployeePhone nvarchar(500),
	@Role nvarchar(500),
	@Region nvarchar(500),
	@DepartmentId int*/
        public bool AddNewEmployee(OEmployee employee)
        {
            return DEmployee.AddNewEmployee(employee);
        }

        /*@EmployeeId int,
	@EmployeeFullName nvarchar(250),
	@UserName nvarchar(250),
	@Password nvarchar(250),
	@EmployeeAddress nvarchar(250),
	@EmployeeBirthday nvarchar(250),
	@EmployeeGender nvarchar(250),
	@EmployeeSalary nvarchar(250),
	@EployeePhone nvarchar(250),
	@Role int,
	@Region nvarchar(250),
	@DepartmentId int*/
        public bool UpdateEmployee(OEmployee employee)
        {
            return DEmployee.UpdateEmployee(employee);
        }
        //@empId int
        public bool DeleteEmployee(int empID)
        {
            return DEmployee.DeleteEmployee(empID);
        }
        public List<OEmployee> getEmployeeContract(int departmentId, int numberEmployee)
        {
            return DEmployee.getEmployeeContract(departmentId, numberEmployee);
        }
    }
}